from .cases_data import load_cases, get_case_names

def analyze_cases():
    # 获取全部案例数据
    all_cases = load_cases()
    
    # 示例分析：统计各门类分布
    category_dist = {}
    for case in all_cases:
        category = case.正确分类['门类'].code
        category_dist[category] = category_dist.get(category, 0) + 1
    
    print(f"行业门类分布: {category_dist}")

if __name__ == "__main__":
    analyze_cases()